package ooday01;

public class drink {
    String drname;
    double price;
    int num;
    drink(){}
    drink(String drname, double price,int num){
        this.drname=drname;
        this.num=num;
        this.price= price;

    }
    void buy(){
        System.out.println("我买"+num+"瓶"+drname+"一共"+num*price);
    }

}
